package com.zk.erp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zk.erp.entity.Functions;
import com.zk.erp.mapper.FunctionsMapper;
import com.zk.erp.service.IFunctionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zk
 * @since 2021-04-12
 */
@Service
public class FunctionsServiceImpl extends ServiceImpl<FunctionsMapper, Functions> implements IFunctionsService {
    @Autowired
    private FunctionsMapper mapper;
    @Override
    public List<Functions> findFunctionsByUsername(String username) {
        return mapper.findFunctionsByUsername(username);
    }

    @Override
    public List<Functions> findAll() {
        return mapper.findAll();
    }

    @Override
    public List<String> selectFunctionIdsByRoleId(String roleId) {
        return mapper.selectFunctionIdsByRoleId(roleId);
    }
}
